package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo.signingSubject;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;


@Schema(description = "管理后台 - 合同签约主体 Response VO")
@Data
@ToString(callSuper = true)
public class SigningSubjectRespVO {

    @Schema(description = "id", required = true)
    private Long id;

    @Schema(description = "签约主体名称")
    private String companyName;

    @Schema(description = "生效状态 1已生效 2已驳回")
    private Integer status;

    @Schema(description = "生效时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDate activeTime;

    @Schema(description = "线上签约开关 0关闭 1开启")
    private Boolean signSwitch;

    @Schema(description = "统一社会信用代码")
    private String companyIdCard;

    @Schema(description = "法定代表人姓名")
    private String legal;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "法定代表人身份证号")
    private String idCard;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "关联门店")
    private String relationApartment;

    @Schema(description = "关联门店ID")
    private List<Long> relationApartmentIds;

}
